<ul id="popular_project">
    <?php foreach ($news_arr as $news) { ?>
    <li>
        <p><?php echo $news->title;?></p>
        <a href="<?php echo base_url().'tin-tuc/chi-tiet/'.$news->permalink;?>"><?php $date = new DateTime($news->date); echo $date->format('d-m-Y');?></a> 
    </li>
    <?php }?>
</ul>